package com.heima.behavior;

import com.heima.model.common.constants.article.HotArticleConstants;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author 29143
 */
@SpringBootApplication
@MapperScan("com.heima.behavior.mapper")
public class ApBehaviorEntryApplication {
    public static void main(String[] args) {
        SpringApplication.run(ApBehaviorEntryApplication.class,args);
    }

    @Bean
    Queue hotArticleQueue(){
        return new Queue(HotArticleConstants.HOT_ARTICLE_SCORE_BEHAVIOR_QUEUE);
    }
}
